package com.zyd.shiro.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static SimpleDateFormat formatterDay = new SimpleDateFormat("yyyy-MM-dd");

    public static SimpleDateFormat formatterTime = new SimpleDateFormat("HH");

    public static String getNowDay(){
        return formatterDay.format(new Date());
    }

    public static String getNowHour(){
        return formatterTime.format(new Date());
    }
}
